/*
 * $Id: Tcp4Address.h,v 1.8 2005-07-23 14:05:45 bacon Exp $
 */

#ifndef _XPP_NET_TCP4ADDRESS_CLASS_
#define _XPP_NET_TCP4ADDRESS_CLASS_

#include <xpp/net/TcpAddress.h>

namespace xpp
{
	namespace net
	{

		class Tcp4Address: public TcpAddress
		{
		public:
			Tcp4Address ();
			Tcp4Address (const InetAddress& adr);
			Tcp4Address (const struct sockaddr_in& adr);
			Tcp4Address (xp_uint16_t port, xp_uint32_t ip);

			Tcp4Address& operator= (const Tcp4Address& adr);
			Tcp4Address& operator= (const InetAddress& adr);

			xp_uint16_t port () const;
			xp_uint32_t ip () const;
		};

	}
}

#endif
